import * as echarts from 'echarts/core';
import
{
  BarChart,
  PieChart,
  LineChart,
} from 'echarts/charts';
import
{
  TitleComponent,
  TooltipComponent,
  GridComponent,
  LegendComponent,
  DatasetComponent,
  ToolboxComponent,
  DataZoomComponent,
} from 'echarts/components';
import
{
  CanvasRenderer
} from 'echarts/renderers';
echarts.use(
  [
    TitleComponent,
    TooltipComponent,
    GridComponent,
    BarChart,
    PieChart,
    LineChart,
    LegendComponent,
    DatasetComponent,
    CanvasRenderer,
    ToolboxComponent,
    DataZoomComponent,
  ]
);

export default echarts;